home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Auge 4000 / Auge 4000 #47 (1990-06-22)(Amiga User Gruppe Einzugsgebiet 4000).zip / Auge 4000 #47 (1990-06-22)(Amiga User Gruppe Einzugsgebiet 4000).adf / arp-pro1.3 / NEW_MANUAL / GetKeywordIndex < prev    next >
Text File  |  1990-06-22  |  1KB  |  64 lines

  1.  
  2.  
  3.  
  4.      GetKeywordIndex(39.0)             ARP Programmers Manual
  5.  
  6.  
  7.  
  8.      NAME
  9.     GetKeywordIndex - get index of keyword in template string.
  10.  
  11.      SYNOPSIS
  12.       index = GetKeywordIndex( kwrd, template )
  13.         d0                A0     A1
  14.  
  15.      FUNCTION
  16.       This function returns the index value for a keyword in a
  17.       GADS() style keyword template.  The "template" string is
  18.       searched for a match against "kwrd" and if found, the index
  19.       into the template string (0,1,...) is returned.  If no match
  20.       is found, return value is -1.
  21.  
  22.      INPUTS
  23.       kwrd -  A keyword string, typically parsed from the command
  24.           line.
  25.  
  26.       template - An ADOS command template (ex: "TO,FROM,ALL/S").
  27.  
  28.      RESULT
  29.       index    - Index to matched keyword, or -1.
  30.  
  31.      EXAMPLES
  32.       GetKeywordIndex("ALL","TO/a,FROM/a,ALL/s")      returns 2
  33.  
  34.       GetKeywordIndex("Somefile","TO/a,FROM/a,ALL/s") returns -1
  35.  
  36.      BUGS
  37.       None known.
  38.  
  39.      SEE ALSO
  40.       GADS() for definition of template strings.
  41.  
  42.      AUTHOR
  43.       SDB (docs by CDH)
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                         (printed 9/12/89)
  64.